package com.czwj.dao;

import java.util.List;
import java.util.Map;

import com.czwj.entities.Permission;


public interface PermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);
    
    List<Permission> search(Map<String, Object> Params);
    
    int deleteByRoleId(int id);

	/**
	* @Title: deleteByRoleId2
	* @Description: TODO
	* @param roleId
	* @return 参数 
	* @return int 返回类型
	* @throws
	*/
	int deleteByRoleId2(int roleId);
}